// import React from 'react';
// import { Route, Redirect, BrowserRouter as Router1 } from 'react-router-dom';

import Login from '../pages/Login';
import Deatils from '../pages/Deatils';
import { Home } from '../pages/Home';
import HomePage from '../pages/HomePage'


// 定义了一个纯路由组件

const  Router = [
   
     

     {
        path:"/home",
    //    path:"/home",
        component:Home,
        //  exact: true,
        children: [ // 嵌套路由
           
            {
                path: '/home/homePage',
                component: HomePage,
                exact: true,

            }

            // {
            //     path: '/home',
            //      exact: true,
            //     component: Home,
            // },
            
        ]
    },
    {
        path:"/login",
        component:Login,
    },

    {
        path:"/details",
        component:Deatils,
    },

   
    {
        path:"/homes/home/homePage",
        component:HomePage,
    },


    {
        path:"/",
        component:Home,
        redirect: "/home",
        exact: true,
    },

 
    
 ]


export default Router;